//
//  BullertSprite.m
//  isMan
//
//  Created by Xing Lion on 11-6-18.
//  Copyright 2011年 InspurWorld. All rights reserved.
//

#import "BullertSprite.h"
#import "HelloWorldLayer.h"

#define MAX_SPEED 20

@implementation BullertSprite
@synthesize speed = _speed;

+ (id) BulletWithinLayer:(CCLayer *)layer
{

	HelloWorldLayer *ly = (HelloWorldLayer *)layer;
    
	BullertSprite *sprite = [BullertSprite spriteWithFile:@"bullet.PNG" rect:CGRectMake(0, 0, 16, 16)];
	[ly addChild:sprite z:100];
    
	[sprite setVisible:NO];
	[sprite SetGamelayer:layer];
    
    sprite.speed = MAX_SPEED;
	
	return sprite;

}

- (void)SetGamelayer:(CCLayer *)layer
{
    gLayer = layer;

}

- (void) dealloc
{

	[super dealloc];
}

@end
